﻿package com.cilico.single.view;

import com.cilico.single.components.POI;

/**
 * This class encapsulates a POI object with properties to display it on the map. 
 * It's used together with PoiSelection and its subclasses.
 * 
 * @author lv.xiangan
 */
public class DisplayPoi {

	/**
	 * Index of this POI in POI list display. Serves as uniform ID when displaying POIs on map. 
	 * NOTE: Index starts from 1.
	 */
	private int displayIndex_;
	public final POI poi_;

	/** Creates a new instance of DisplayPoi */
	public DisplayPoi(POI p) {
		poi_ = p;
	}

	public void setDisplayIndex(int idx) {
		displayIndex_ = idx;
	}

	public int getDisplayIndex() {
		return displayIndex_;
	}

}
